<script setup lang="ts">
import { onLaunch } from '@dcloudio/uni-app'
import { useUserStore } from './stores/user'
const { getUser } = useUserStore()
onLaunch(async () => {
    const userStore = useUserStore()
    if (userStore.isLogin) await getUser()
    else {
        uni.reLaunch({
            url: '/pages/login/index'
        })
    }
})
</script>
<style lang="scss">
//
</style>
